import { NativeModules } from 'react-native';

type TencentBuglyType = {
  init(appID: string, isDebug: boolean): Promise<string>;
  setUserId(userId: string): void;
};

const { TencentBugly } = NativeModules;

export default TencentBugly as TencentBuglyType;
